/// tabInfo : {"tabList":[{"id":0,"name":"周排行","apiUrl":"http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=weekly","tabType":0,"nameType":0,"adTrack":null},{"id":1,"name":"月排行","apiUrl":"http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=monthly","tabType":0,"nameType":0,"adTrack":null},{"id":2,"name":"总排行","apiUrl":"http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=historical","tabType":0,"nameType":0,"adTrack":null}],"defaultIdx":0}

class HotBean {
  TabInfo _tabInfo;

  TabInfo get tabInfo => _tabInfo;

  HotBean({
      TabInfo tabInfo}){
    _tabInfo = tabInfo;
}

  HotBean.fromJson(dynamic json) {
    _tabInfo = json["tabInfo"] != null ? TabInfo.fromJson(json["tabInfo"]) : null;
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_tabInfo != null) {
      map["tabInfo"] = _tabInfo.toJson();
    }
    return map;
  }

}

/// tabList : [{"id":0,"name":"周排行","apiUrl":"http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=weekly","tabType":0,"nameType":0,"adTrack":null},{"id":1,"name":"月排行","apiUrl":"http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=monthly","tabType":0,"nameType":0,"adTrack":null},{"id":2,"name":"总排行","apiUrl":"http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=historical","tabType":0,"nameType":0,"adTrack":null}]
/// defaultIdx : 0

class TabInfo {
  List<TabList> _tabList;
  int _defaultIdx;

  List<TabList> get tabList => _tabList;
  int get defaultIdx => _defaultIdx;

  TabInfo({
      List<TabList> tabList, 
      int defaultIdx}){
    _tabList = tabList;
    _defaultIdx = defaultIdx;
}

  TabInfo.fromJson(dynamic json) {
    if (json["tabList"] != null) {
      _tabList = [];
      json["tabList"].forEach((v) {
        _tabList.add(TabList.fromJson(v));
      });
    }
    _defaultIdx = json["defaultIdx"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_tabList != null) {
      map["tabList"] = _tabList.map((v) => v.toJson()).toList();
    }
    map["defaultIdx"] = _defaultIdx;
    return map;
  }

}

/// id : 0
/// name : "周排行"
/// apiUrl : "http://baobab.kaiyanapp.com/api/v4/rankList/videos?strategy=weekly"
/// tabType : 0
/// nameType : 0
/// adTrack : null

class TabList {
  int _id;
  String _name;
  String _apiUrl;
  int _tabType;
  int _nameType;
  dynamic _adTrack;

  int get id => _id;
  String get name => _name;
  String get apiUrl => _apiUrl;
  int get tabType => _tabType;
  int get nameType => _nameType;
  dynamic get adTrack => _adTrack;

  TabList({
      int id, 
      String name, 
      String apiUrl, 
      int tabType, 
      int nameType, 
      dynamic adTrack}){
    _id = id;
    _name = name;
    _apiUrl = apiUrl;
    _tabType = tabType;
    _nameType = nameType;
    _adTrack = adTrack;
}

  TabList.fromJson(dynamic json) {
    _id = json["id"];
    _name = json["name"];
    _apiUrl = json["apiUrl"];
    _tabType = json["tabType"];
    _nameType = json["nameType"];
    _adTrack = json["adTrack"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["id"] = _id;
    map["name"] = _name;
    map["apiUrl"] = _apiUrl;
    map["tabType"] = _tabType;
    map["nameType"] = _nameType;
    map["adTrack"] = _adTrack;
    return map;
  }

}